package cn.wolfcode.designpattern.prototype;

/**
 * @author Leon
 * @date 2021/2/21
 */
public class ProtoTypeTest {

    public static void main(String[] args) {
        User user = new User("小明");
        User user1 = (User) user.clone();
        System.out.println(user);
        System.out.println(user1);
    }
}
